package com.errol.batchprocessor.batchprocessor.payload;

import lombok.Getter;

import java.util.List;

/**
 * 批处理模型 分片数据载体抽象类
 *
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/02/22
 * @since v5.0.5
 **/
@Getter
public abstract class AbstractPiecePayload<SE, SP extends AbstractSinglePayload<SE>> {

    private final List<SP> singlePayloadList;

    public AbstractPiecePayload(List<SP> singlePayloadList) {
        this.singlePayloadList = singlePayloadList;
    }

    @Override
    public final boolean equals(Object o) {
        return super.equals(o);
    }

    @Override
    public final int hashCode() {
        return super.hashCode();
    }
}
